package com.it.myd.service.main.module.wuziqi;

import com.it.myd.bean.box.UserGameInfo;
import com.it.myd.bean.box.game.WuziqiRV;
import com.it.myd.bean.box.game.Room;
import com.it.myd.bean.main.User;
import org.springframework.web.socket.WebSocketSession;

import java.util.List;

public interface WuZiQiService {
    public void cellQz(WuziqiRV wzqRV);
    public void playeradd(UserGameInfo user,WebSocketSession session) ;
    public void playerremove(UserGameInfo user);
    public void gamePlayerEntry(Integer userid,WebSocketSession session) ;
    public WebSocketSession getgamePlayerSession(Integer userid);
    public void gamePlayerOut(Integer userid);
    public List<UserGameInfo> getUserGameInfo(UserGameInfo userGameInfo);
    public void addUserGameInfo(UserGameInfo userGameInfo);
    public List<User> getUserByUserid(String userid);
    public void updateUserGameInfo(UserGameInfo userGameInfo);
    public void addGameInfo(Room room);
    public void updateGameInfo(Room room);
}
